# _*_ coding: utf-8 _*_
from odoo import models, fields, api


class StockMove(models.Model):
    _inherit = "stock.move"

    def action_manual_reserve(self):
        self.ensure_one()
        self.action_assign()
        self.check_recompute_pack_op()
        if self.picking_id:
            self.picking_id.do_prepare_partial()

    def action_manual_unreserve(self):
        self.ensure_one()
        self.do_unreserve()
        self.check_recompute_pack_op()
        if self.picking_id:
            self.picking_id.do_prepare_partial()
